/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package bombercloud;

import javax.swing.SwingUtilities;

/**
 *
 * @author Leonardo Oliveira Moreira
 */
public class BomberCloudMain { 

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                Scenario gamePlay = new Scenario();
                gamePlay.build(Scenario.MAX_ONE_MILLION_PLAYERS);
                Player[] players = new Player[300];
                for (int i = 0; i < players.length; i++) {
                    players[i] = new Player(gamePlay);
                    gamePlay.addPlayer(players[i]);
                }
                gamePlay.execute();
                for (int i = 0; i < players.length; i++) {
                    players[i].start();
                }
            }
        });
    }

}
